package text;
import practice5.dao.StudentDaoImpl;
import org.junit.test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DateSourceTest {
    @Test
    public void test(){
        ClassPathXmlApplicationContext classPathXmlApplicationContext =
                new ClassPathXmlApplicationContext( "applicationContext.xml");
        StudentDaoImpl studentsDao = classPathXmlApplicationContext.getBean("studentsDaoImpl", StudentDaoImpl.class);

        int i = studentsDao.update(new Student("2", "2018", "软件技术", "男", "李四"));
    }
}
